package com.xuxk.project.library.dto;
import java.util.ArrayList;
import java.util.List;

/**
 * Model class for XuxkBooking. Add not database mapped fileds in this class.
 * @author 橙云科技有限公司
 */
public class XuxkBookingDto{

    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public XuxkBookingDto() {
        oredCriteria = new ArrayList<Criteria>();
    }
    
    public XuxkBookingDto(XuxkBookingDto other) {
		this.distinct = other.distinct;
		this.orderByClause = other.orderByClause;
		this.oredCriteria = other.oredCriteria;
	}

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }
    
    protected abstract static class AbstractGeneratedCriteria {
        protected List<Criterion> criteria;

        protected AbstractGeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }
        
        
	        public Criteria andIdIsNull() {
	            addCriterion("id is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdIsNotNull() {
	            addCriterion("id is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdEqualTo(Integer value) {
	            addCriterion("id =", value, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdNotEqualTo(Integer value) {
	            addCriterion("id <>", value, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdGreaterThan(Integer value) {
	            addCriterion("id >", value, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
	            addCriterion("id >=", value, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdLessThan(Integer value) {
	            addCriterion("id <", value, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdLessThanOrEqualTo(Integer value) {
	            addCriterion("id <=", value, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdIn(List<Integer> values) {
	            addCriterion("id in", values, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdNotIn(List<Integer> values) {
	            addCriterion("id not in", values, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdBetween(Integer value1, Integer value2) {
	            addCriterion("id between", value1, value2, "id");
	            return (Criteria) this;
	        }
	
	        public Criteria andIdNotBetween(Integer value1, Integer value2) {
	            addCriterion("id not between", value1, value2, "id");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andBNameIsNull() {
	            addCriterion("b_name is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andBNameIsNotNull() {
	            addCriterion("b_name is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andBNameEqualTo(String value) {
	            addCriterion("b_name =", value, "bName");
	            return (Criteria) this;
	        }
	
	        public Criteria andBNameNotEqualTo(String value) {
	            addCriterion("b_name <>", value, "bName");
	            return (Criteria) this;
	        }
	
	        public Criteria andBNameGreaterThan(String value) {
	            addCriterion("b_name >", value, "bName");
	            return (Criteria) this;
	        }
	
	        public Criteria andBNameGreaterThanOrEqualTo(String value) {
	            addCriterion("b_name >=", value, "bName");
	            return (Criteria) this;
	        }
	
	        public Criteria andBNameLessThan(String value) {
	            addCriterion("b_name <", value, "bName");
	            return (Criteria) this;
	        }
	
	        public Criteria andBNameLessThanOrEqualTo(String value) {
	            addCriterion("b_name <=", value, "bName");
	            return (Criteria) this;
	        }
	
	        public Criteria andBNameIn(List<String> values) {
	            addCriterion("b_name in", values, "bName");
	            return (Criteria) this;
	        }
	
	        public Criteria andBNameNotIn(List<String> values) {
	            addCriterion("b_name not in", values, "bName");
	            return (Criteria) this;
	        }
	
	        public Criteria andBNameBetween(String value1, String value2) {
	            addCriterion("b_name between", value1, value2, "bName");
	            return (Criteria) this;
	        }
	
	        public Criteria andBNameNotBetween(String value1, String value2) {
	            addCriterion("b_name not between", value1, value2, "bName");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andLIdIsNull() {
	            addCriterion("l_id is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andLIdIsNotNull() {
	            addCriterion("l_id is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andLIdEqualTo(Integer value) {
	            addCriterion("l_id =", value, "lId");
	            return (Criteria) this;
	        }
	
	        public Criteria andLIdNotEqualTo(Integer value) {
	            addCriterion("l_id <>", value, "lId");
	            return (Criteria) this;
	        }
	
	        public Criteria andLIdGreaterThan(Integer value) {
	            addCriterion("l_id >", value, "lId");
	            return (Criteria) this;
	        }
	
	        public Criteria andLIdGreaterThanOrEqualTo(Integer value) {
	            addCriterion("l_id >=", value, "lId");
	            return (Criteria) this;
	        }
	
	        public Criteria andLIdLessThan(Integer value) {
	            addCriterion("l_id <", value, "lId");
	            return (Criteria) this;
	        }
	
	        public Criteria andLIdLessThanOrEqualTo(Integer value) {
	            addCriterion("l_id <=", value, "lId");
	            return (Criteria) this;
	        }
	
	        public Criteria andLIdIn(List<Integer> values) {
	            addCriterion("l_id in", values, "lId");
	            return (Criteria) this;
	        }
	
	        public Criteria andLIdNotIn(List<Integer> values) {
	            addCriterion("l_id not in", values, "lId");
	            return (Criteria) this;
	        }
	
	        public Criteria andLIdBetween(Integer value1, Integer value2) {
	            addCriterion("l_id between", value1, value2, "lId");
	            return (Criteria) this;
	        }
	
	        public Criteria andLIdNotBetween(Integer value1, Integer value2) {
	            addCriterion("l_id not between", value1, value2, "lId");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andBTypeIsNull() {
	            addCriterion("b_type is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andBTypeIsNotNull() {
	            addCriterion("b_type is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andBTypeEqualTo(Integer value) {
	            addCriterion("b_type =", value, "bType");
	            return (Criteria) this;
	        }
	
	        public Criteria andBTypeNotEqualTo(Integer value) {
	            addCriterion("b_type <>", value, "bType");
	            return (Criteria) this;
	        }
	
	        public Criteria andBTypeGreaterThan(Integer value) {
	            addCriterion("b_type >", value, "bType");
	            return (Criteria) this;
	        }
	
	        public Criteria andBTypeGreaterThanOrEqualTo(Integer value) {
	            addCriterion("b_type >=", value, "bType");
	            return (Criteria) this;
	        }
	
	        public Criteria andBTypeLessThan(Integer value) {
	            addCriterion("b_type <", value, "bType");
	            return (Criteria) this;
	        }
	
	        public Criteria andBTypeLessThanOrEqualTo(Integer value) {
	            addCriterion("b_type <=", value, "bType");
	            return (Criteria) this;
	        }
	
	        public Criteria andBTypeIn(List<Integer> values) {
	            addCriterion("b_type in", values, "bType");
	            return (Criteria) this;
	        }
	
	        public Criteria andBTypeNotIn(List<Integer> values) {
	            addCriterion("b_type not in", values, "bType");
	            return (Criteria) this;
	        }
	
	        public Criteria andBTypeBetween(Integer value1, Integer value2) {
	            addCriterion("b_type between", value1, value2, "bType");
	            return (Criteria) this;
	        }
	
	        public Criteria andBTypeNotBetween(Integer value1, Integer value2) {
	            addCriterion("b_type not between", value1, value2, "bType");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andBStorageFloorIsNull() {
	            addCriterion("b_storage_floor is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStorageFloorIsNotNull() {
	            addCriterion("b_storage_floor is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStorageFloorEqualTo(Integer value) {
	            addCriterion("b_storage_floor =", value, "bStorageFloor");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStorageFloorNotEqualTo(Integer value) {
	            addCriterion("b_storage_floor <>", value, "bStorageFloor");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStorageFloorGreaterThan(Integer value) {
	            addCriterion("b_storage_floor >", value, "bStorageFloor");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStorageFloorGreaterThanOrEqualTo(Integer value) {
	            addCriterion("b_storage_floor >=", value, "bStorageFloor");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStorageFloorLessThan(Integer value) {
	            addCriterion("b_storage_floor <", value, "bStorageFloor");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStorageFloorLessThanOrEqualTo(Integer value) {
	            addCriterion("b_storage_floor <=", value, "bStorageFloor");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStorageFloorIn(List<Integer> values) {
	            addCriterion("b_storage_floor in", values, "bStorageFloor");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStorageFloorNotIn(List<Integer> values) {
	            addCriterion("b_storage_floor not in", values, "bStorageFloor");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStorageFloorBetween(Integer value1, Integer value2) {
	            addCriterion("b_storage_floor between", value1, value2, "bStorageFloor");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStorageFloorNotBetween(Integer value1, Integer value2) {
	            addCriterion("b_storage_floor not between", value1, value2, "bStorageFloor");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andBRemarkIsNull() {
	            addCriterion("b_remark is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andBRemarkIsNotNull() {
	            addCriterion("b_remark is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andBRemarkEqualTo(String value) {
	            addCriterion("b_remark =", value, "bRemark");
	            return (Criteria) this;
	        }
	
	        public Criteria andBRemarkNotEqualTo(String value) {
	            addCriterion("b_remark <>", value, "bRemark");
	            return (Criteria) this;
	        }
	
	        public Criteria andBRemarkGreaterThan(String value) {
	            addCriterion("b_remark >", value, "bRemark");
	            return (Criteria) this;
	        }
	
	        public Criteria andBRemarkGreaterThanOrEqualTo(String value) {
	            addCriterion("b_remark >=", value, "bRemark");
	            return (Criteria) this;
	        }
	
	        public Criteria andBRemarkLessThan(String value) {
	            addCriterion("b_remark <", value, "bRemark");
	            return (Criteria) this;
	        }
	
	        public Criteria andBRemarkLessThanOrEqualTo(String value) {
	            addCriterion("b_remark <=", value, "bRemark");
	            return (Criteria) this;
	        }
	
	        public Criteria andBRemarkIn(List<String> values) {
	            addCriterion("b_remark in", values, "bRemark");
	            return (Criteria) this;
	        }
	
	        public Criteria andBRemarkNotIn(List<String> values) {
	            addCriterion("b_remark not in", values, "bRemark");
	            return (Criteria) this;
	        }
	
	        public Criteria andBRemarkBetween(String value1, String value2) {
	            addCriterion("b_remark between", value1, value2, "bRemark");
	            return (Criteria) this;
	        }
	
	        public Criteria andBRemarkNotBetween(String value1, String value2) {
	            addCriterion("b_remark not between", value1, value2, "bRemark");
	            return (Criteria) this;
	        }
        
        
	        public Criteria andBStatusIsNull() {
	            addCriterion("b_status is null");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStatusIsNotNull() {
	            addCriterion("b_status is not null");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStatusEqualTo(Integer value) {
	            addCriterion("b_status =", value, "bStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStatusNotEqualTo(Integer value) {
	            addCriterion("b_status <>", value, "bStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStatusGreaterThan(Integer value) {
	            addCriterion("b_status >", value, "bStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStatusGreaterThanOrEqualTo(Integer value) {
	            addCriterion("b_status >=", value, "bStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStatusLessThan(Integer value) {
	            addCriterion("b_status <", value, "bStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStatusLessThanOrEqualTo(Integer value) {
	            addCriterion("b_status <=", value, "bStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStatusIn(List<Integer> values) {
	            addCriterion("b_status in", values, "bStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStatusNotIn(List<Integer> values) {
	            addCriterion("b_status not in", values, "bStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStatusBetween(Integer value1, Integer value2) {
	            addCriterion("b_status between", value1, value2, "bStatus");
	            return (Criteria) this;
	        }
	
	        public Criteria andBStatusNotBetween(Integer value1, Integer value2) {
	            addCriterion("b_status not between", value1, value2, "bStatus");
	            return (Criteria) this;
	        }
        
                
     }

    public static class Criteria extends AbstractGeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}